/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wisnu.scs;

import com.wisnu.scs.dao.DbBarangRekapDao;
import com.wisnu.scs.entity.DbBarangRekap;
import com.wisnu.scs.error.ErrorMessage;
import com.wisnu.scs.util.HibernateUtil;
import java.text.ParseException;
import java.util.List;

/**
 *
 * @author Wisnu Wardoyo
 */
public class Main {

    public static void main(String[] args) throws ErrorMessage, ParseException {
        DbBarangRekapDao barangRekapDao = HibernateUtil.getBarangRekapDao();
        
        List<DbBarangRekap> list = barangRekapDao.selectByDate(new java.util.Date());
        
        for(DbBarangRekap barangRekap:list){
            System.out.println(barangRekap);
        }
        
    }
}
